import request from '@/utils/request'

// 获取部门列表
export const reqGetDepts = () => request.get('/company/department')

// 部门负责人列表
export const reqGetSimpleList = () => request.get('/sys/user/simple')

// 新增部门
export const reqAddEeap = data => request.post('/company/department', data)

// 根据id查询部门详情
export const reqGetDepInfo = id => request({
  url: `/company/department/${id}`
})

// 更新部门信息
export const reqUpdateDept = (data) => request.put(`/company/department/${data.id}`, data)

// 删除部门
export const reqDelDept = id => request.delete(`/company/department/${id}`)
